package com.csun.cmny.provider.service;

import com.csun.cmny.base.dto.LoginAuthDto;
import com.csun.cmny.core.support.IService;
import com.csun.cmny.provider.model.domain.DmcFollowDataBpressure;
import com.csun.cmny.provider.model.dto.follow.FollowDataPageQuery;
import com.csun.cmny.provider.model.dto.follow.UpFollowDataBpressureDto;
import com.github.pagehelper.PageInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @Auther: chisj chisj@foxmal.com
 * @Date: 2019-01-16 16:39
 * @Description: the dmc follow data bpressure service
 */
public interface DmcFollowDataBpressureService extends IService<DmcFollowDataBpressure> {

    /**
     * query dmc follow data bpressure list with page
     *
     * @param followDataPageQuery   follow data query page
     *
     * @return  the page info
     */
    PageInfo queryDmcFollowDataBpressureListWithPage(FollowDataPageQuery followDataPageQuery);

    /**
     * up follow data bpressure
     *
     * @param upFollowDataBpressureDto  up follow data bpressure dto
     * @param loginAuthDto              login auth dto
     *
     * @return  the int.
     */
    Integer upFollowDataBpressure(UpFollowDataBpressureDto upFollowDataBpressureDto, LoginAuthDto loginAuthDto);

    /**
     * @description: TODO
     * @param: oldmanId 老人ID
     * @return: 老人设备最新一次测量数据
     * @throws
     * @author huangxm
     * @date 2019/3/15 11:30
     */
    Map<String,Object> getRecentData(Integer oldmanId);

    List<Map<String,Object>> getAllOldmanData(Integer oldmanId);
}
